package ua.od.edu.labWork1.variant1;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created with IntelliJ IDEA.
 * User: Oxana
 * Date: 9/16/13
 * Time: 7:23 PM
 * To change this template use File | Settings | File Templates.
 */
public class LabWork11 {
    public LabWork11() {
    }
    public void dialog(){
        System.out.println("What is your name?");
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
        try {
            System.out.println("Hello,"+reader.readLine());
        } catch (IOException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }
    }
}
